package cn.xuewenbao.manage.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: course
 * @Author: jeecg-boot
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Data
@TableName("course")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="course对象", description="course")
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

	/**课程id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "课程id")
    private String id;
	/**课程讲师id*/
	@Excel(name = "课程讲师id", width = 15)
    @ApiModelProperty(value = "课程讲师id")
    private String teacherId;
	/**讲师姓名*/
	@Excel(name = "讲师姓名", width = 15)
    @ApiModelProperty(value = "讲师姓名")
    private String teacherName;
	/**课程专业id*/
	@Excel(name = "课程专业id", width = 15)
    @ApiModelProperty(value = "课程专业id")
    private String subjectId;
	/**课程专业父级id*/
	@Excel(name = "课程专业父级id", width = 15)
    @ApiModelProperty(value = "课程专业父级id")
    private String subjectParentId;
	/**课程标题*/
	@Excel(name = "课程标题", width = 15)
    @ApiModelProperty(value = "课程标题")
    private String title;
	/**课程价格，为0则可以免费观看*/
	@Excel(name = "课程价格，为0则可以免费观看", width = 15)
    @ApiModelProperty(value = "课程价格，为0则可以免费观看")
    private BigDecimal price;
	/**课程封面路径*/
	@Excel(name = "课程封面路径", width = 15)
    @ApiModelProperty(value = "课程封面路径")
    private String cover;
	/**销售数量*/
	@Excel(name = "销售数量", width = 15)
    @ApiModelProperty(value = "销售数量")
    private Integer buyCount;
	/**课程描述*/
	@Excel(name = "课程描述", width = 15)
    @ApiModelProperty(value = "课程描述")
    private String description;
	/**课程状态Draft未发布  Normal已发布*/
	@Excel(name = "课程状态Draft未发布  Normal已发布", width = 15)
    @ApiModelProperty(value = "课程状态Draft未发布  Normal已发布")
    private String status;
	/**逻辑删除 1（true）已删除， 0（false）未删除*/
	@Excel(name = "逻辑删除 1（true）已删除， 0（false）未删除", width = 15)
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDeleted;
    /**创建时间*/
    @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**更新时间*/
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
